package com.example.wemedia;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;

@EnableDiscoveryClient
@SpringBootApplication
@MapperScan("com.example.wemedia.dao")
public class UsianLeadnewsWemediaApplication {
    
    public static void main(String[] args) {
        SpringApplication.run(UsianLeadnewsWemediaApplication.class, args);
    }
    
    
    /**
     * mybatis-plus分页插件
     *
     * @return {@code PaginationInterceptor}
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
